﻿using System;
using System.Collections.Generic;
using System.Runtime.Serialization;

namespace JTLeigh.Commerce.Spencer.Features.ProductFeedback.Service.Contracts.Runtime.GetProductFeedback
{

	/// <summary>
	/// Data contract representing a product rating for a single product by a single customer.
	/// </summary>
	[DataContract(Name = "ProductRating", Namespace = "http://schemas.jtleigh.com/Commerce/Spencer/Features/ProductFeedback/1.0/Runtime/GetProductFeedback/")]
	public class ProductRating
	{

		#region Properties

		/// <summary>
		/// Gets or sets the product rating value.
		/// </summary>
		[DataMember(Name = "Value", IsRequired = true)]
		public byte Value { get; set; }

		/// <summary>
		/// Gets or sets the list of rating attribute values.
		/// </summary>
		/// <value>An <see cref="IList{TItem}"/> of <see cref="ProductRatingAttributeValue"/>.</value>
		[DataMember(Name = "AttributeValues", IsRequired = false)]
		public IList<ProductRatingAttributeValue> AttributeValues { get; set; }

		#endregion // Properties

	}

}
